import { createRouter ,createWebHistory } from "vue-router";
import Detail from "@/views/Detail.vue";
import Home from "@/views/Home.vue";
import { KeepAlive } from "vue";


 const router = createRouter({
  history:createWebHistory(),
  routes:[
    {
      name:'detail',
      path:'/detail',
      component:Detail,                      
    },
    {
      name:'home',
      path:'/home',
      component:Home,   
               
    },
    {
      path:'/',
      component:Home,   
                    
    }
  ]
})

export default router

